<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动</title>
    <style>
        .box1 {
            width: 50px;
            height: 50px;
            background-color: blue;
            float: left;
        }

        .container {
            width: 300px;
            height: 300px;
            background-color: brown;
        }
        img{
            width: 200px;
            float: left;
        }
    </style>
</head>

<body>
    <!-- 
    浮动的定义
    float属性定义元素在哪个方向浮动，任何元素都可以浮动
    left:元素向左浮动
    right:元素向右浮动
    浮动以后会脱离文档流
    -->

    <div class="box1"></div>
    <div class="container"></div>

    <div>
        <img src="../05背景属性/images/1.jpg">
        <img src="../05背景属性/images/1.jpg">
    </div>
</body>

</html>